{% extends "djangollery/root.html" %}

{% load djangollery_tags i18n %}

{% block title %}{{ object.title }}{% endblock %}
{% block dochead %}
<link rel="stylesheet" href="/static/djangollery/css/basic.css" type="text/css" />
<link rel="stylesheet" href="/static/djangollery/css/djangollery.css" type="text/css" />
{% endblock %}

{% block content %}

<h1>{{ object.title }}</h1>
<div class="gallery-photo">
    <a href="{{ object.as_leaf_class.get_original_url }}">
		<img src="{{ object.as_leaf_class.get_display_url }}" alt="{{ object.title }}"/>
	</a>
    {% if object.caption %}<p>{{ object.caption }}</p>{% endif %}
</div>
{% if object.public_galleries %}
<h2>{% trans "This photo is found in the following galleries:"%}</h2>
<div id="container">
	<ul class="gallery-thumbs"> 
	{% for gallery in object.public_galleries %}
	    <li>
		<a href="{{ gallery.get_absolute_url }}">{{ gallery.title }}</a> 
		</li>
	{% endfor %}
	</ul>
</div>
{% endif %}

{% endblock %}
